package com.example.sneakerappserver.service;

import com.example.sneakerappserver.pojo.Order;
import com.example.sneakerappserver.pojo.dto.OrderDto;
import org.aspectj.weaver.ast.Or;

import java.util.List;

public interface IOrderService {
    void update(Order order);   // 更新

    Order add(Order order);

    Order queryByOrderId(Long orderId); // 根据 orderId来进行查询

    List<Order> queryByUserId(Long userId); // 根据用户id来查询订单

    List<Order> queryByUserIdAndStatus(Long userId,String status);

    List<Order> queryByStatus(String status);
    void deleteOrder(Order o);

    boolean existsById(Long orderId);


}
